import http from "@/utils/request"


// 获取基地对应鸽棚
export function getAllDovecoteNumber(id) {
  return http({
    url: `/breed/dovecote/getAllDovecoteNumber?baseId=${id}`,
    method: 'get',
  });
}
export function userslist(pagenum,pagesize,data) {
    return http({
     url: `/breed/clearSoil/list/${pagenum}/${pagesize}`,
     params:data,
     method: 'get',
    });
}
export function edituser(userid,data) {
    return http({
      url: `/breed/clearSoil/update/${userid}`,
      method: 'post',
      data:data
    });
}
export function deleteuser(userid) {
    return http({
      url: `/breed/clearSoil/delete/${userid}`,
      method: 'delete'
    });
}
export function adduser(data) {
    return http({
      url: `/breed/clearSoil/save`,
      method: 'post',
      data:data
    });
}
export function multipledelete(data) {
  return http({
   url: `/breed/clearSoil/deleteList?idList=${data}`,
   method: 'delete',
  });
}
// 清粪机器
export function machinelist(current,size,data) {
  return http({
    url: `/breed/clear-soil-machine/list/${current}/${size}`,
    params:data,
    method: 'get',
  });
}
export function editmachine(userid,data) {
  return http({
    url: `/breed/clear-soil-machine/update/${userid}`,
    method: 'post',
    data:data
  });
}
export function deletemachine(userid) {
  return http({
    url: `/breed/clear-soil-machine/delete/${userid}`,
    method: 'delete'
  });
}
export function addmachine(data) {
  return http({
    url: `/breed/clear-soil-machine/save`,
    method: 'post',
    data:data
  });
}
export function multimachinedelete(data) {
  return http({
   url: `/breed/clear-soil-machine/deleteList?idList=${data}`,
   method: 'delete',
  });
}
export function openmachine(machineNumber) {
  return http({
   url: `/breed/clear-soil-machine/open?machineNumber=${machineNumber}`,
   method: 'post',
  });
}
export function closemachine(data) {
  return http({
   url: `/breed/clear-soil-machine/shutdown/`,
   params:data,
   method: 'post',
  });
}